#pragma once


#include "CProfiler.h"
#include <map>
#include <list>
using std::multimap;
using std::pair;
using std::list;

class CProfileManager
{
private:
	multimap<string, CProfiler*>		m_ProfileData;

	CProfiler* m_pProfile;

	CProfileManager() {}
	CProfileManager(const CProfileManager&);
	CProfileManager& operator=(const CProfileManager&);

	bool AlreadyExists(string szName);

public:
	~CProfileManager();
	static CProfileManager* GetInstance(void);
	
	void StartProfile(string szName);
	void StopProfile(string szName);
};